from django.urls import path
from rest_framework.routers import DefaultRouter

from coures.views import CateGoryAPI, CateGory, CourseAPI, CouresID, CommitView, CommitAdd, HotWord
router=DefaultRouter()
router.register("hot",HotWord,basename='hot')
urlpatterns=[
    path("cate",CateGoryAPI.as_view()),
    path("category",CateGory.as_view()),
    path("categoryAPI",CourseAPI.as_view()),
    path("categoryById",CouresID.as_view()),
    path("Commit/",CommitView.as_view()),
    path("add/",CommitAdd.as_view()),
]

urlpatterns +=router.urls